package cn.kgc.controller;

import cn.kgc.pojo.Accept;
import cn.kgc.service.AcceptService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class ResumeController {
    @Reference
    private AcceptService acceptService;

    //未处理简历
    @RequestMapping("/getNoHandleResumes.json")
    @ResponseBody
    public List<Accept> getNoHandleResumes(){
        return acceptService.getNoHandle();
    }

    //根据简历反馈状态查询
     @RequestMapping("/getResumesByFeedback.json")
     @ResponseBody
    public List<Accept> getResumesByFeedback(Integer feedbackId){
        return acceptService.getResumesByFeedback(feedbackId);
     }

}
